package com.wonders.frame.entity;

import com.wonders.frame.core.entity.EntityTemplate;
import lombok.Data;

import javax.persistence.*;

/**
 * @author 顾乘瑞
 * @Description TODO
 * @Date 2020/8/18 1:53 PM
 */
@Table(name = "t_fact_basic_info")
@Data
public class FactBasicInfo extends EntityTemplate {
    @Column(name = "table_name", columnDefinition = "varchar2(50) COMMENT '表名")
    private String tableName;
    @Column(name = "table_name_cn", columnDefinition = "varchar2(50) COMMENT '表名-中文'")
    private String tableNameCn;
    @Column(name = "table_code", columnDefinition = "varchar2(50) COMMENT '事实表编码，可作为mainType'")
    private String tableCode;
    @Column(name = "business_category", columnDefinition = "number(2) COMMENT '业务类别'")
    private Integer businessCategory;
    @Column(name = "is_automatic", columnDefinition = "number(2) COMMENT '是否自动生成etl任务 0：是 1：否'")
    private Integer isAutomatic;
    @OneToOne
    @JoinColumn(name = "task_id", referencedColumnName = "id")
    private  ETLTask task;
}
